package com.qf.flash.ui.business;

import android.app.Activity;
import android.content.Intent;
import android.widget.FrameLayout;
import android.widget.TextView;

import com.qf.flash.R;
import com.qf.flashlib.base.BaseActivity;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * 创建日期：2020/3/14 on 20:03
 * 描述: 订单大厅
 * 作者:戴旭东
 */
public class OrderHallActivity extends BaseActivity {
    @BindView(R.id.tv_top_title)
    TextView tvTopTitle;
    @BindView(R.id.fl_list)
    FrameLayout flList;

    public static void start(Activity activity) {
        Intent intent = new Intent(activity, OrderHallActivity.class);
        activity.startActivity(intent);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_group_hall;
    }

    @Override
    protected void initViewAndData() {
        tvTopTitle.setText("订单大厅");
        getSupportFragmentManager().
                beginTransaction()
                .add(R.id.fl_list, new OrderHallFragment())
                .commit();
    }


    @OnClick(R.id.tv_top_back)
    public void onViewClicked() {
        finish();
    }

}
